package com.jihu.design.behavioral.visitor;

/**
 * @author jihu
 * @date 2021/10/12
 */
public class MainTest {

    public static void main(String[] args) {
        XiaoAi xiaoAi = new XiaoAi();

        xiaoAi.answerQuestion();

        //升级：cpu联网处理命令
        //升级: disk改为云存储
        UpdatePackage updatePackage = new UpdatePackage("联网增强功能");
        xiaoAi.acceptUpdate(updatePackage);

        xiaoAi.answerQuestion();
    }
}
